home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Found / FWCollec / PROrdCol.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  3.6 KB  |  93 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                PROrdCol.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef PRORDCOL_H
  11. #define PRORDCOL_H
  12.  
  13. #ifndef SLCOLLEC_H
  14. #include "SLCollec.h"
  15. #endif
  16.  
  17. #ifndef FWSTDDEF_H
  18. #include "FWStdDef.h"
  19. #endif
  20.  
  21. //========================================================================================
  22. // Ordered Collection extern C
  23. //========================================================================================
  24.  
  25. // Export or Import functions for CFM-68K [sfu]
  26.  
  27. #if defined(FW_ODFLIB_IMPORT)
  28. #pragma import on
  29. #elif defined(FW_ODFLIB)
  30. #pragma export on
  31. #endif
  32.  
  33. FW_EXTERN_C_BEGIN
  34.  
  35. unsigned long SL_API        FW_PrivOrderedCollection_Count(FW_HLinkedList collection);
  36.     
  37. FW_PlatformError SL_API        FW_PrivOrderedCollection_AddFirst(FW_HLinkedList collection, 
  38.                                                                 const void* element);
  39. FW_PlatformError SL_API        FW_PrivOrderedCollection_AddLast(FW_HLinkedList collection, 
  40.                                                                 const void* element);
  41. FW_PlatformError SL_API        FW_PrivOrderedCollection_AddBefore(FW_HLinkedList collection, 
  42.                                                                 FW_OrderedCollection_MatchProc matchProc, 
  43.                                                                 const void* existing, 
  44.                                                                 const void* tobeadded);
  45. FW_PlatformError SL_API        FW_PrivOrderedCollection_AddAfter(FW_HLinkedList collection,
  46.                                                                 FW_OrderedCollection_MatchProc matchProc, 
  47.                                                                 const void* existing, 
  48.                                                                 const void* tobeadded);
  49.  
  50. void* SL_API                FW_PrivOrderedCollection_After(FW_HLinkedList collection,
  51.                                                                 FW_OrderedCollection_MatchProc matchProc,
  52.                                                                 const void* existing); 
  53. void* SL_API                FW_PrivOrderedCollection_Before(FW_HLinkedList collection, 
  54.                                                                 FW_OrderedCollection_MatchProc matchProc, 
  55.                                                                 const void* existing);
  56.                                                                 
  57. void* SL_API                FW_PrivOrderedCollection_First(FW_HLinkedList collection);
  58. void* SL_API                FW_PrivOrderedCollection_Last(FW_HLinkedList collection);
  59.  
  60. void* SL_API                FW_PrivOrderedCollection_RemoveFirst(FW_HLinkedList collection);
  61. void* SL_API                FW_PrivOrderedCollection_RemoveLast(FW_HLinkedList collection);
  62. void SL_API                    FW_PrivOrderedCollection_RemoveAll(FW_HLinkedList collection);
  63.             
  64. void SL_API                    FW_PrivOrderedCollection_Remove(FW_HLinkedList collection, 
  65.                                                                 FW_OrderedCollection_MatchProc matchProc, 
  66.                                                                 const void* existing);
  67. FW_Boolean SL_API            FW_PrivOrderedCollection_Contains(FW_HLinkedList collection, 
  68.                                                                 FW_OrderedCollection_MatchProc matchProc, 
  69.                                                                 const void* existing);
  70.  
  71. //========================================================================================
  72. // Ordered Collection Iterator extern C
  73. //========================================================================================
  74.  
  75. void* SL_API                FW_PrivOrderedCollectionIterator_First(FW_HLinkedListIterator iterator);
  76. void* SL_API                FW_PrivOrderedCollectionIterator_Next(FW_HLinkedListIterator iterator);
  77. void* SL_API                FW_PrivOrderedCollectionIterator_Last(FW_HLinkedListIterator iterator);
  78. void* SL_API                FW_PrivOrderedCollectionIterator_Previous(FW_HLinkedListIterator iterator);
  79. void* SL_API                FW_PrivOrderedCollectionIterator_Current(FW_HLinkedListIterator iterator);
  80. FW_Boolean SL_API            FW_PrivOrderedCollectionIterator_IsNotComplete(FW_HLinkedListIterator iterator);
  81.  
  82. FW_EXTERN_C_END
  83.  
  84. // For CFM-68K [sfu]
  85.  
  86. #if defined(FW_ODFLIB_IMPORT)
  87. #pragma import off
  88. #elif defined(FW_ODFLIB)
  89. #pragma export off
  90. #endif
  91.  
  92. #endif
  93.